package cn.tedu.egweibo3.controller;

import cn.tedu.egweibo3.commen.JsonResult;
import cn.tedu.egweibo3.mapper.UserMapper;
import cn.tedu.egweibo3.pojo.ato.UserRegDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping(value = "/v1/users/")
@RestController
@Slf4j
public class UserController {
//    @Autowired
//    private UserMapper userMapper;
//    @PostMapping(value = "reg")
//    public JsonResult userReg(@RequestBody UserRegDTO userRegDTO){
//        return JsonResult.ok(userMapper.insert(userRegDTO));
//    }


}
